"""
继承

- 单继承
- 多继承

=====================================================
单继承

class 类名(父类名):
    类内容体

=====================================================
多继承

class 类名(父类名1, 父类名2, 父类名3......):
    类内容体

- 多个父类中，如果有同名的成员，那么默认以 继承顺序（从左到右）为优先级。

=====================================================
pass关键字

pass是占位语句，用来保证函数（方法）或类定义的完整性，表示无内容，空的意思
"""

print("=====================================================")


# 多继承
class Phone:
    number = None
    cpu = None

    def call_by_4g(self):
        print("开启4G通话！")


class door:
    door_id = None
    cpu = "HM"

    def call_for_door(self):
        print("智能门锁已开启！")


class infraredray:
    infrared_ray = None

    def call_infrared_ray(self):
        print("红外线功能已开启！")


class Phone2023(Phone, door, infraredray):
    pass


phone = Phone2023()
# 多个父类中，如果有同名的成员，那么默认以 继承顺序（从左到右）为优先级。
print(phone.cpu)
phone.call_by_4g()
phone.call_for_door()
phone.call_infrared_ray()
